export default {
	data() {
		return {
			//设置默认的分享参数
			//如果页面不设置share，就触发这个默认的分享
			share: {
				title: '人人售电，人人皆可售电',
				path: `/pages/index/index?scene=${uni.getStorageSync("userinfo").id||0}`,
				imageUrl: '',
				desc: '人人售电，人人皆可售电',
				content: '人人售电，人人皆可售电'
			}
		}
	},

	onShareAppMessage(res) {
		return {
			title: this.share.title,
			path: this.share.path,
			imageUrl: this.share.imageUrl,
			desc: this.share.desc,
			content: this.share.content,
		}
	},
	onShareTimeline(res){
		return {
			title: this.share.title,
			path: this.share.path,
			imageUrl: this.share.imageUrl,
			desc: this.share.desc,
			content: this.share.content,
		}
	}
}